var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var Article = /** @class */ (function () {
    // 构造器
    function Article(title, content) {
        this.bbb = 100; // 固定值
        this.title = title;
        this.content = content;
    }
    return Article;
}());
var A = new Article('标题', '内容');
console.log(A);
// A.tempData // 会报错的原因就是因为是私有的，只能在 Article类 中使用
// A.innerData // 会报错的原因是 属性“innerData”受保护，只能在类“Article”及其子类中访问。
var B = /** @class */ (function (_super) {
    __extends(B, _super);
    function B(title, content) {
        var _this = _super.call(this, title, content) || this;
        console.log(_this.innerData); // 正确，因为 innerData 是受保护的成员
        return _this;
        // console.log(this.tempData)  // 报错 私有的
    }
    return B;
}(Article));
